
public class Pair
{
	private final String key;
	private final String value;

	public Pair(String aKey, String aValue)
	{
		key   = aKey;
		value = aValue;
	}

	public String key()   { return key; }
	public String value() { return value; }


	public String toString() {
		return key + "|" + value;
		
	}
	
	public int hashCode(){  
		return key.hashCode() ^ value.hashCode();  
	}     


	public boolean equals(Object o)  
	{  
		if((o instanceof Pair) && ((Pair)o).key().equals(key)  && ((Pair)o).value().equals(value)  )  
			return true;  

		return false;  
	}  

}